package com.hongxun.design.listeners;

import android.view.View;

/**
 * Created by zerdoor_pc on 2016/5/23.
 */
public abstract class MClickListener implements View.OnClickListener {
    int position;
    Object msg;
    public Object msg2;

    public MClickListener(int position, Object msg) {
        this.msg = msg;
        this.position = position;
    }

    public MClickListener(int position, Object msg,Object msg2) {
        this.msg = msg;
        this.msg2 = msg2;
        this.position = position;
    }

    @Override
    public void onClick(View view) {
        onClick(view,position,msg);
    }

    public abstract void onClick(View view,int position,Object msg);

}
